.CONVERT NUM TO HEX PR
This subroutine converts a decimal number to a hex pair of alpha characters.
Usage:
Description:
This subroutine converts a number to a hex pair of alpha characters. Both parameters are required, the subroutine will CANCEL if they are not PASSed.
<hex_pair> returns the hexidecimal equivalent of <decimal_number> (Required). This must be PASSed with Share "Y" to return the result.
<decimal_number> is the value you want converted (Required). This be an integer in the range 0-255.
If you want to convert a string of characters to hexidecimal, see .CONVERT BYTES TO HEX. To convert a hexidecimal number to decimal, see .CONVERT HEX PR TO NUM.
|